<template>

  <v-dialog v-model="dialog" max-width="290" persistent>
    <v-card>
      <v-card-title class="headline">警告</v-card-title>

      <v-card-text>是否确认删除<span v-makefocus>{{expirationMaterialName}}</span>？</v-card-text>

      <v-card-actions>
        <v-spacer></v-spacer>

        <v-btn color="red darken-1" text @click="emitHandlerCancel">取消</v-btn>

        <v-btn color="green darken-1" text @click="emitHandlerConfirm">确认删除</v-btn>

      </v-card-actions>
    </v-card>
  </v-dialog>

</template>

<script>
  export default {
    data() {
      return {

      }
    },
    props: {
      dialog: {
        type: Boolean
      },
      expirationMaterialName: {
        type: String
      },

      currrntTabIndex: {
        type: Number
      },

    },
    methods: {
      emitHandlerCancel() {
        this.$emit('efcTurnOffDialog', false)
      },

      emitHandlerConfirm() {
        this.$emit('efcDeleteMaterial',this.currrntTabIndex)
      }

    }
  }

</script>

<style>

</style>
